<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

	
	
	
	<h:head>
	
</h:head>

<h:body>



<p:tabMenu activeIndex="0">  
    <p:menuitem value="MODIFY FLIGHTS" url="http://localhost:8080/TravelDreamWeb/modifyFlight.xhtml" icon="ui-icon-search"/>  
    <p:menuitem value="MODIFY HOTELS" url="http://localhost:8080/TravelDreamWeb/modifyHotel.xhtml" icon="ui-icon-search" /> 
     <p:menuitem value="MODIFY EXCURSIONS" url="http://localhost:8080/TravelDreamWeb/modifyExcursion.xhtml" icon="ui-icon-search" />   
</p:tabMenu> 



<h:form>
<h5 style="font-size:large;">THESE ARE YOUR PERSONALIZED PACKAGES</h5>
    </h:form>



<h:form style="font-size:x-small;">
   <p:dataTable id="dataTable1" var="pers" value="#{personalizePackageBean.persPackList}" widgetVar="perListTable"   
           rowKey="#{pers.idpackage}"
           selection="#{personalizePackageBean.selectedPersonalizedPackage}"
           selectionMode="single">
           >
     
        <p:column id="FLIGHT"    
                headerText="FLIGHT" 
                >  
            <h:outputText value="#{pers.idbasicproduct1}"/>
          
        </p:column> 
   
        <p:column id="HOTEL"    
                headerText="HOTEL" 
                >  
            <h:outputText value="#{pers.idbasicproduct2}"/>
     
        </p:column> 
        
        
         <p:column id="EXCURSION"    
                headerText="EXCURSION" 
                >  
                
            <h:outputText value="#{pers.idbasicproduct3}"/>
     
        </p:column> 
        
         <p:column id="TOTALPRICE"    
                headerText="TOTALPRICE" 
                >  
                
            <h:outputText value="#{pers.totalprice}"/>
     
        </p:column> 
        
       
    </p:dataTable>  
      
      
      
      
      <h:form><!-- 1 -->
      
      
      <h:form>
<h3 style="font-size:large;">SELECT A FLIGHT</h3>
    </h:form>
      
      
      <p:dataTable id="dataTableFlight" var="flights" value="#{searchFlightBean.flightsList}" widgetVar="flightsListTable"   
           emptyMessage="No flights found with given criteria" filteredValue="#{searchFlightBean.flightsFiltered}"
           rowKey="#{flights.idbasicproduct}"
           selection="#{personalizePackageBean.flightSelected}"
           selectionMode="single">
          
     
        <p:column id="IDBASICPRODUCTColumn" filterBy="idbasicproduct"   
                headerText="Flight Number"
                filterMatchMode="contains"
              
                >  
            <h:outputText value="#{flights.idbasicproduct}"/>
 
 
       
      
        </p:column> 
          
        <p:column id="ARRIVALAIRPORT" filterBy="arrivalairport"  
                headerText="ARRIVAL AIRPORT" filterMatchMode="contains" >   
            <h:outputText value="#{flights.arrivalairport}" />  
        </p:column>  
  
       
                
         <p:column id="ARRIVALDATE" filterBy="arrivaldate"  
                headerText="ARRIVAL DATE"  filterMatchMode="contains">  
            <h:outputText value="#{flights.arrivaldate}" />  
        </p:column>  
         
        
         <p:column id="DEPARTUREAIRPORT" filterBy="departureairport"  
                headerText="DEPARTURE AIRPORT" filterMatchMode="contains">  
            <h:outputText value="#{flights.departureairport}" /> 
        </p:column>  
        
        
        
        
          <p:column id="DEPARTUREDATE" filterBy="departureairport"  
                headerText="DEPARTURE DATE"  filterMatchMode="contains">  
            <h:outputText value="#{flights.arrivaldate}" />  
        </p:column>     
        
        
        
        
        <p:column id="PRICE" filterBy="price"  
                headerText="PRICE" filterMatchMode="contains">  
            <h:outputText value="#{flights.price}" />  
        </p:column>
        
        
        
        
        <p:column id="SEATNUMBER" filterBy="seatnumber"  
                headerText="SEAT NUMBER"  filterMatchMode="contains">  
            <h:outputText value="#{flights.seatnumber}" />  
        </p:column>
        
       
        
    </p:dataTable>  
      

 <h:form>  
        
<h:commandButton value=" click to modify flights " action="#{personalizePackageBean.changeFlight()}"  update="dataTable1" />

</h:form>



</h:form><!-- chiude il forum del Flights --> <!-- 1 -->










</h:form>



</h:body>
	
	
	
	
</html>

	
